package pso;

import java.util.HashMap;
import java.util.Map;

public enum AlgorithmsDataList {
	INSTANCE;

	public static AlgorithmsDataList getInstance() {
		return INSTANCE;
	}

	private Map<PSOAlgorithm, PSODisplayData> data = new HashMap<>();

	public void clearData() {
		data.clear();
	}

	public PSODisplayData getDisplayData(PSOAlgorithm algorithm) {
		return data.get(algorithm);
	}

	public void addDisplayData(PSOAlgorithm algorithm,
			PSODisplayData displayData) {
		data.put(algorithm, displayData);
	}
}
